﻿using Best.SmartCms.Domain.Common;
using Best.SmartCms.Domain.Security;
using Microsoft.EntityFrameworkCore;

namespace Best.SmartCms.Domain
{
    /// <summary>
    /// DB数据集
    /// </summary>
    public class MySqlDbContext : DbContext
    {
        public DbContextOptions<MySqlDbContext> Options { get; }

        public MySqlDbContext(DbContextOptions<MySqlDbContext> options) : base(options)
        {
            Options = options;
        }


        public DbSet<User> UserSet { get; set; }
        public DbSet<BusinessSystem> BusinessSystemSet { get; set; }
       
        public DbSet<Attachment> AttachmentSet { get; set; }
       
        public DbSet<CheckDb> CheckDbSet { get; set; }
        public DbSet<Channel> ChannelSet { get; set; }

        public DbSet<ChannelGroup> ChannelGroupSet { get; set; }
        public DbSet<Role> RoleSet { get; set; }
        public DbSet<Department> DepartmentSet { get; set; }
        public DbSet<News> NewsSet { get; set; }
        public DbSet<SiteSetting> SiteSettingSet { get; set; }
        public DbSet<Category> CategorySet { get; set; }
        public DbSet<Product> ProductSet { get; set; }
        public DbSet<AlipaySetting> AlipaySettingSet { get; set; }
        public DbSet<WeixinSetting> WeixinSettingSet { get; set; }
        public DbSet<Area> AreaSet { get; set; }
        public DbSet<Address> AddressSet { get; set; }
        public DbSet<Order> OrderSet { get; set; }
        public DbSet<OrderItem> OrderItemSet { get; set; }
        // CodeGeneration_Bookmark_Set代码生成书签勿删除无修改并独立一行

    }
}
